import request from '@/utils/request'

export function getrolelist (params) {
  return request({
    url: '/back/role/list',
    method: 'post',
    data: params
  })
}
export function addrole (params) {
  return request({
    url: '/back/role/saveOrUpdate',
    method: 'post',
    data:params
  })
}
export function deleterole (params) {
  return request({
    url: '/back/role/removeByIds',
    method: 'post',
    data:params
  })
}
export function getroleinfo (params) {
  return request({
    url: '/back/role/getById',
    method: 'post',
    data:params
  })
}

export function updatepermission (params) {
  return request({
    url: '/back/role/saveOrUpdate',
    method: 'post',
    data:params
  })
}

export function getuserlist (params) {
  return request({
    url: '/back/admin/listByPage',
    method: 'post',
    data:params
  })
}

export function adduser (params) {
  return request({
    url: '/back/admin/addOrUpdate',
    method: 'post',
    data:params
  })
}

export function deleteuser (params) {
  return request({
    url: '/back/admin/delete',
    method: 'post',
    data:params
  })
}

export function resetpassword (params) {
  return request({
    url: '/back/admin/resetPassword',
    method: 'post',
    data:params
  })
}


